﻿//vs
//"#version 150 core

in vec3 inPosition;
in vec3 inColor;

uniform mat4 mvpMat;

out vec3 passColor;

void main(void) {
    // transform vertex' position from model space to clip space.
    gl_Position = mvpMat * vec4(inPosition, 1.0);

    passColor = inColor;

    gl_PointSize = 15;
}

//fs
//#version 150

in vec3 passColor;

out vec4 outColor;

void main(void) {
	outColor = vec4(passColor, 1.0);
}

//vs
//#version 150 core

in vec3 inPosition;
in vec3 inColor;

uniform mat4 mvpMat;

flat out vec3 passColor;

void main(void) {
    // transform vertex' position from model space to clip space.
    gl_Position = mvpMat * vec4(inPosition, 1.0);

    passColor = inColor;

    gl_PointSize = 15;
}

//fs
//#version 150

flat in vec3 passColor;

out vec4 outColor;

void main(void) {
	outColor = vec4(passColor, 1.0);
}
